package com.dms.modules.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_browse_history")
@ApiModel("用户浏览历史")
public class UserBrowseHistory {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;
    
    @ApiModelProperty("用户ID")
    private Long userId;
    
    @ApiModelProperty("商品ID")
    private Long productId;
    
    @ApiModelProperty("商品分类ID")
    private Long categoryId;
    
    @ApiModelProperty("浏览次数")
    private Integer viewCount;
    
    @ApiModelProperty("停留时长(秒)")
    private Integer stayDuration;
    
    @ApiModelProperty("最后浏览时间")
    private LocalDateTime lastViewTime;
    
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
    
    @TableLogic
    @ApiModelProperty("是否删除：0-未删除 1-已删除")
    private Integer deleted;
} 